/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wisnu.scs.dao;

import com.wisnu.scs.entity.DbBarang;
import com.wisnu.scs.entity.DbBarangMasuk;
import com.wisnu.scs.error.ErrorMessage;
import java.util.Date;
import java.util.List;

/**
 *
 * @author Wisnu Wardoyo
 */
public interface DbBarangMasukDao {

    void insertBarangMasuk(DbBarangMasuk barangMasuk, DbBarang barang) throws ErrorMessage;

    void updateBarangMasuk(DbBarangMasuk barangMasuk, DbBarang barang) throws ErrorMessage;

    void deleteBarangMasuk(DbBarangMasuk barangMasuk, DbBarang barang) throws ErrorMessage;
    
    List<DbBarangMasuk> selectBarangMasukByKeyWords(String SearchText) throws ErrorMessage;

    List<DbBarangMasuk> selectBarangMasukByDate(String SearchText, Date date) throws ErrorMessage;

    List<DbBarangMasuk> selectBarangMasukByDateRange(String SearchText, List<Date> dateList) throws ErrorMessage;

    List<DbBarangMasuk> selectAllBarangMasuk() throws ErrorMessage;
}
